package com.zry.admin.controller.goods;


import com.zry.admin.service.IGoodsUnitService;
import com.zry.admin.pojo.GoodsUnit;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 张瑞洋
 * @title: GoodsUnitController
 * @projectName zry_jxc
 * @description: 商品单位表 前端控制器
 * @date 2022/1/21 20:54
 */
@Controller
@RequestMapping("/goodsUnit")
public class GoodsUnitController {
    @Resource
    private IGoodsUnitService goodsUnitService;

    @RequestMapping("allGoodsUnits")
    @ResponseBody
    public List<GoodsUnit> allGoodsUnits() {
        return goodsUnitService.list();
    }
}
